using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.SharePoint;

namespace ShareTools.InfoPathFormsManager
{
    public partial class SelectSiteCollectionForm : Form
    {
        public SelectSiteCollectionForm()
        {
            InitializeComponent();
        }

        void GetSiteCollectionList()
        {
            
        }

        public string SiteCollectionURL
        {
            get
            {
                return txtSiteURL.Text;
            }
        }

        private void btnSelectSiteURL_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(txtSiteURL.Text.Trim()))
            {
                MessageBox.Show("The site url cannot be empty."); return;
            }
            this.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
            this.Dispose();
        }
    }
}